<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
	<title>设置</title>
	<script src="https://tcsc.oss-cn-hangzhou.aliyuncs.com/static/wechat/frame/mui/js/mui.min.js"></script>
	<link href="https://tcsc.oss-cn-hangzhou.aliyuncs.com/static/wechat/frame/mui/css/mui.min.css" rel="stylesheet" />
	<link href="https://tcsc.oss-cn-hangzhou.aliyuncs.com/static/wechat/css/app.css?v=042401" rel="stylesheet" />
	<link rel="stylesheet" href="https://tcsc.oss-cn-hangzhou.aliyuncs.com/static/wechat/frame/sui/css/SUI.css">
	<link rel="stylesheet" href="https://tcsc.oss-cn-hangzhou.aliyuncs.com/static/wechat/font/iconfont.css">
</head>
<style type="text/css">
	.bind{color:#009900;float: right;}
</style>
<body class="set">
	<div class="suiLineBox notop">
		<dl class="goto" href="/mobile/my/info_edit">
			<dt class="suiBgImg" style="background-image: url({{.info.pathname}});"></dt>
			<dd>{{.info.monicker}}</dd>
			<dd>手机号码：{{.info.mobile}}</dd>
			<dd class="right"></dd>
		</dl>
		<dl class="goto" href="/mobile/my/address">
			<dt>收货地址</dt>
			<dd class="right"></dd>
		</dl>
	</div>
	<div class="suiLineBox">
		<dl class="goto" href="/mobile/my/info_safe">
			<dt>账户安全</dt>
			<dd class="right"></dd>
		</dl>
		{{if .info.wx_unionid}}
		{{if ne .info.wx_unionid ""}}
		<dl>
			<dt>微信绑定</dt>
			<dd class="bind">已绑定</dd>
		</dl>
		{{else}}
		<dl class="goto" href="/mobile/my/info_bind_wechat">
			<dt>微信绑定</dt>
			<dd class="right"></dd>
		</dl>
		{{end}}
		{{else}}
		<dl class="goto" href="/mobile/my/info_bind_wechat">
			<dt>微信绑定</dt>
			<dd class="right"></dd>
		</dl>
		{{end}}
	</div>
	<button id="logout">退出登录</button>
</body>
</html>
<script type="text/javascript" src="https://tcsc.oss-cn-hangzhou.aliyuncs.com/static/wechat/frame/sui/js/SUI.js"></script>
{{template "wechat/public/share.html" .}}
<script>
	document.getElementById("logout").addEventListener('tap',function(){
		mui.confirm("您确定要退出吗?","提示",function(res){
			if(res.index){
			mui.closePopups()	
			window.location.href="/mobile/logout"
			}
		})
	})
</script>